<!--/**
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/ -->
<!DOCTYPE HTML>
<html>
<head>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="report.css"/>
	<script type="text/javascript" src="js/lib/require.js"></script>
	<script type="text/javascript">
		require.config(
			{
                baseUrl: window.location.protocol + "//" + window.location.host + window.location.pathname.split("/").slice(0, -1).join("/"),
				paths:{
					jquery:'lib/jquery_v1.9.1/jquery-1.9.1.min',
					log: "../log/log",
					log4javascript: "../../lib/log4javascript-1.4.13/log4javascript",
					event_channel: "../event/channel",
					lodash: "../../lib/lodash_v4.13.1/lodash",
					backbone: "../../lib/backbone_v1.3.3/backbone",
           		    d3utils: "../utils/d3-utils",
           		    ace: "../../lib/ace_v1.2.6",
           		    d3: "../../lib/d3_v4.1.1/d3",
           		    beautify: "../../lib/beautify/beautify",
           		    property_pane_utils: "../property-pane/property-pane-utils",
           		    underscore: "../../lib/underscore-1.8.3/underscore",
           		    alerts: "../utils/alerts",
           		    main_elements: "../main-elements/module",
           		    mousetrap: "../../lib/mousetrap_v1.6.0/mousetrap.min",
           		    processors: "../processors/module",
           		    constants: '../../js/constants/constants',
           		    environment_content: "../../js/ballerina/env/environment-content",
           		    jsPlumb: "../../lib/jsPlumb-2.2.8/jsPlumb-2.2.8-min",
           			yaml: "../../lib/js-yaml-v3.7.0/dist/js-yaml.min",
            		typeahead: "../../lib/typeahead_v0.11.1/typeahead.bundle.min",
           		    expression_editor_utils: "../../js/expression-editor/expression-editor-utils",
           		    mcustom_scroller: "../../lib/mCustomScrollbar_v3.1.5/js/jquery.mCustomScrollbar",
           		    typeMapper: '../../js/type-mapper/type-mapper-renderer',
           		    dagre: "../../lib/dagre-0.7.4/dagre.min",
           		    select2: "../../lib/select2-4.0.3/dist/js/select2.full.min",
           		    console: "../../js/launcher/console",
                    debugger: "../../js/debugger",
                    bal_configs: "../../js/ballerina/configs",
				},

                shim: {
                   "bootstrap": {"deps": ['jquery']}
                },

      			map: {
            		"*": {
                		// use lodash instead of underscore
                		underscore: "lodash",
                		jQuery: "jquery"
                    }
                },
				packages: [
				    {
                    	name: 'ballerina',
                    	location: '../ballerina',
                    	main: 'module'
                    }
                ]
			}
		);

		require(['require', 'js/lib/chai', 'js/lib/mocha'], function(require){
			mocha.setup('bdd');
			require(['js/spec/BallerinaTest'], function(module){
		 		mocha.run();
			});
		});
	</script>
</head>
<body>
	<div id="mocha"></div>
</body>
</html>